package ma.jee.portailReservation.persistence.announce.DAO;

import ma.jee.portailReservation.framework.dao.hibernate.AbstractHibernateDAO;
import ma.jee.portailReservation.persistence.announce.Announce;
import ma.jee.portailReservation.persistence.announce.IAnnounceDAO;
import org.springframework.stereotype.Repository;

/**
 * Created by IntelliJ IDEA.
 * User: soufiane
 * Date: 22/12/11
 * Time: 02:10
 * To change this template use File | Settings | File Templates.
 */
@Repository("hibernateAnnounceDAO")
public class HibernateAnnounceDAO extends AbstractHibernateDAO<Long, Announce> implements IAnnounceDAO {


    @Override
    public Announce findByAnnounceId(long id) {
        return super.findEntityByQuery("FROM Announce p WHERE p.id ='"+id+"'");
    }
}
